<?php
require_once('../include/control/context.php.inc');
require_once('../include/control/CatergoryControl.php');
require_once('../admin/header.php.inc');

if(!$current_usr || $current_usr.id!='1084588625'){
	header("Location: /");
}

$control = new CategoryControl();
$model = $control-> model;
$method = $control-> method;
?>

<form method="post" action="/admin/category.php">
<input type="hidden" name="id" value="<?php echo $model->id ?>" />
<input type="hidden" name="c_method" value="<?php echo $method ?>" />
<dl>
<dt>name</dt><dd><input type="text" name="name" value="<?php echo $model->name ?>" /></dd>
<dt>screen_name</dt><dd><input type="text" name="screen_name" value="<?php echo $model->screen_name ?>" /></dd>
<dt>notes</dt><dd><textarea name="notes" rows="5" cols="5"><?php echo $model->notes ?></textarea></dd>
<dt>list_order</dt><dd><input type="text" name="list_order" value="<?php echo $model->list_order ?>" /></dd>
<dt>status</dt><dd><select name="status">
<option value="0">正常</option>
</select></dd>
<dt></dt> <dd><input type="submit" value="save"></dd>
</dl>
</form>

<?php
require_once('../admin/footer.php.inc');
?>
